
const anaylsis = {
    state: {
        radarChart: {
            entity: [
                {value: 1048, name: '搜索引擎'},
                {value: 735, name: '直接访问'},
                {value: 580, name: '邮件营销'},
                {value: 484, name: '联盟广告'},
                {value: 300, name: '视频广告'}
            ],
        },

        lineChart: {
            expectedData: [100, 120, 161, 134, 105, 160, 165, 155, 190, 111, 122, 200],
        },

        hLineChart: {
            expectedData: [1000, 1200, 1610, 1340, 1050, 1600, 1650, 1550, 1900, 1110, 1220, 2000],
            actualData: [1200, 820, 910, 1540, 1620, 1400, 1450, 110, 200, 500, 220, 304]
        },

        pieChart: {
            entity: [
                { value: 320, name: '抵押' },
                { value: 240, name: '拍卖' },
                { value: 149, name: '出售' },
                { value: 222, name: '课税' },
                { value: 123, name: '了解市场' },
                { value: 456, name: '征收' },
                { value: 111, name: '租赁' },
            ],

            header: ['抵押', '拍卖', '出售', '课税', '了解市场', '征收', '租赁'],
        },

        barChart: {
            name: ['比较法','逼近法','成本法','收益法','剩余法', '还原法'],
            value: [122,134,223,123,231,312]
        },

        circleChart: {
            legendData: ['李淼华', '周晨慧','丁颖', '肖荣升','朱航浪','李丽'],
            seriesData: [
                {
                    name: '李淼华',
                    value: 1000
                },
                {
                    name: '周晨慧',
                    value: 800
                },
                {
                    name: '丁颖',
                    value: 700
                },
                {
                    name: '肖荣升',
                    value: 700
                },
                {
                    name: '朱航浪',
                    value: 600
                },
                {
                    name: '李丽',
                    value: 500
                },
            ]
        },
        sunChart: {},
    },

    getters: {
        radarChart: state => state.radarChart,
        lineChart: state => state.lineChart,
        hLineChart: state => state.hLineChart,
        pieChart: state => state.pieChart,
        barChart: state => state.barChart,
        circleChart: state => state.circleChart,
        sunChart: state => state.sunChart,
    },

    // 同步方法
    mutations: {
        setRadarChart(state, val){
            state.radarChart = val
        },
        setLineChart(state, val){
            state.lineChart = val
        },
        sethLineChart(state, val){
            state.hLineChart = val
        },
        setPieChart(state, val){
            state.pieChart = val
        },
        setBarChart(state, val){
            state.barChart = val
        },
        setCircleChart(state, val){
            state.circleChart = val
        },
        setSunChart(state, val){
            state.sunChart = val
        }
    },

    actions: {

    }
}


export default anaylsis